package com.gy.common.model.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.gy.common.market.AggregateRoot;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

/**
 * 用户vo
 */
@Data
@JsonIgnoreProperties
public class SysUserVo implements AggregateRoot {

    /**
     * city
     */
    private Integer id;

    /**
     * city
     */
    private String city;

    /**
     * 用户名
     */
    private String name;

    /**
     * 登录名
     */
    private String username;
    private boolean cityUser;
    private boolean provinceUser;

    /**
     * 用户权限
     */
    private Integer[] roleList;

    public boolean isCityUser() {
        return !StringUtils.isEmpty(this.getCity());
    }
    public boolean isProvinceUser() {
        return StringUtils.isEmpty(this.getCity());
    }
}
